import request from '@/utils/request'

// 查询退货详情列表
export function listMachineCkBackD(query) {
  return request({
    url: '/back/machineCkBackD/list',
    method: 'get',
    params: query
  })
}

// 查询退货详情详细
export function getMachineCkBackD(id) {
  return request({
    url: '/back/machineCkBackD/' + id,
    method: 'get'
  })
}

// 新增退货详情
export function addMachineCkBackD(data) {
  return request({
    url: '/back/machineCkBackD',
    method: 'post',
    data: data
  })
}

// 修改退货详情
export function updateMachineCkBackD(data) {
  return request({
    url: '/back/machineCkBackD',
    method: 'put',
    data: data
  })
}

// 删除退货详情
export function delMachineCkBackD(id) {
  return request({
    url: '/back/machineCkBackD/' + id,
    method: 'delete'
  })
}
